package subraSoft.centaurus.gui.util;

public final class CenStringUtil {

	private CenStringUtil()
	{}
	
	public String capitalizar(String line)
	{
		String[] words = line.split("\\s");
		StringBuilder sb = new StringBuilder();
		for (String s : words) {
			
			if (s.length() == 0) 
				sb.append(s + " ");
			else
				sb.append(s.substring(0, 1).toUpperCase() + s.substring(1).toLowerCase() + " ");
		}
		return sb.toString();
	}
}
